package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Fisdemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("jsd/2406/fos.dat");
        int a=fis.read();
        int b=fis.read();
        System.out.println(a);
        fis.close();

        int n=0;
        while((n=fis.read())!=-1){
            System.out.println(n);
        }
    }
}
